home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-25 | 3.2 KB | 119 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Dialog.h
- // Release Version: $ ODF 1 $
- //
- // Author: Laurent Delamare
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef DIALOG_H
- #define DIALOG_H
-
- // ----- Framework Includes -----
-
- #ifndef FWFRAME_H
- #include "FWFrame.h"
- #endif
-
- #ifndef FWEVENT_H
- #include "FWEvent.h"
- #endif
-
- #ifndef FWDIALOG_H
- #include "FWDialog.h"
- #endif
-
- #ifndef FWEDVIEW_H
- #include "FWEdView.h"
- #endif
-
- // ----- Foundation Layer -----
-
-
- //==============================================================================
- // Forward Declarations
- //==============================================================================
-
- class CFormPart;
- class CFormFrame;
-
- //==============================================================================
- // class CPwdDialogFrame
- //==============================================================================
-
- class CPwdDialogFrame : public FW_CDialogFrame
- {
- public:
- FW_DECLARE_AUTO(CPwdDialogFrame)
-
- CPwdDialogFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- CFormPart* formPart,
- FW_ResourceId id = 0);
-
- virtual ~CPwdDialogFrame();
-
- public:
- // ---- FW_CDialogFrame API
- virtual void HandleNotification(Environment* ev, const FW_CNotification& notification);
-
- // ----- FW_CView & FW_CFrame API
- #ifdef FW_BUILD_MAC
- virtual void FacetAdded(Environment* ev, ODFacet* facet, unsigned short facetCount);
- #else
- virtual void Draw(Environment *ev, ODFacet* odFacet, ODShape* invalidShape);
- #endif
- // virtual void CreateSubViews(Environment* ev);
- virtual void PostCreateViewFromStream(Environment* ev);
-
- // -----New API
- void Initialize(Environment* ev, CFormFrame* frame);
-
- // ----- Private data
- private:
- CFormFrame* fFormFrame; // pointer back to the main frame
- };
-
- //==============================================================================
- // class CPwdEditView
- //==============================================================================
-
- class CPwdEditView : public FW_CEditView
- {
- public:
- FW_DECLARE_CLASS
- FW_DECLARE_AUTO(CPwdEditView)
-
- CPwdEditView(Environment* ev,
- FW_CSuperView* container,
- ODID viewId,
- const FW_CRect& bounds);
-
- CPwdEditView(Environment* ev);
- virtual ~CPwdEditView();
-
- // ----- FW_CEditView
- virtual FW_Boolean DoMenu (Environment* ev, const FW_CMenuEvent& event);
- virtual FW_Boolean DoCharKey (Environment* ev, const FW_CCharKeyEvent & event);
- FW_CString GetText (Environment * ev);
- virtual void ActivateTarget (Environment * ev, FW_Boolean tabSelection);
-
- // ----- Archiving -----
- static void* Create(FW_CReadableStream& stream, FW_ClassTypeConstant type);
- static void Destroy(void* object, FW_ClassTypeConstant type);
- virtual void Flatten(Environment* ev, FW_CWritableStream& stream) const;
- virtual void InitializeFromStream(Environment* ev, FW_CReadableStream& stream);
-
- private:
- void Initialize(Environment* ev, FW_CSuperView* container, const FW_CRect& bounds);
-
- private:
- FW_CEditView* fShadowTEd;
- };
-
- #endif
-